﻿
<%@ Page Language="C#" Theme="PAT_Theme" MasterPageFile="~/master/PAT.master" AutoEventWireup="true"  CodeFile="PatUsuarioRol.aspx.cs" Inherits="PatUsuarioRol" Title="PatUsuarioRol List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="subHeaderContent" Runat="Server">Pat Usuario Rol List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="PatUsuarioRolDataSource"
				DataKeyNames="IdUsuario, IdRol"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_PatUsuarioRol.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<data:HyperLinkField HeaderText="Id Usuario" DataNavigateUrlFormatString="PatUsuarioEdit.aspx?IdUsuario={0}" DataNavigateUrlFields="IdUsuario" DataContainer="IdUsuarioSource" DataTextField="NumeroIdentificacion" />
				<data:HyperLinkField HeaderText="Id Rol" DataNavigateUrlFormatString="PatRolEdit.aspx?IdRol={0}" DataNavigateUrlFields="IdRol" DataContainer="IdRolSource" DataTextField="DescripcionRol" />
				<data:BoundRadioButtonField DataField="Activo" HeaderText="Activo" SortExpression="[ACTIVO]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No PatUsuarioRol Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnPatUsuarioRol" OnClientClick="javascript:location.href='PatUsuarioRolEdit.aspx'; return false;" Text="Agregar Nuevo "></asp:Button>
		<data:PatUsuarioRolDataSource ID="PatUsuarioRolDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:PatUsuarioRolProperty Name="PatRol"/> 
					<data:PatUsuarioRolProperty Name="PatUsuario"/> 
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:PatUsuarioRolDataSource>
	    		
</asp:Content>



